<?php

/**
 * Tarea form.
 *
 * @package    comalapa
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class TareaForm extends BaseTareaForm
{
    public function configure(){
        unset($this['created_at'], $this['updated_at'] );	

        sfProjectConfiguration::getActive()->loadHelpers('Url'); 

        $this->widgetSchema['clasificacion_id'] = new
                sfWidgetFormDoctrineJQueryAutocompleter(array(
                        'model' => 'Clasificacion',
                        'url'    => url_for('cla/ajax')
        ));

        $this->widgetSchema['estado_id'] = new sfWidgetFormChoice(array(
                'choices'  => Doctrine_Core::getTable('Estado')->retriveState(),
                'expanded' => true,
        ));
		
    }
}
